<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <p style="color:red;">我的名字叫lemon</p>
        <p v-bind:style="{color: colorValue}">我的名字叫lemon</p>
        <p v-bind:style="styleObj">我的名字叫lemon</p>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                colorValue: 'red',
                styleObj: {
                    color: 'red',
                    fontSize: '20px'
                }
            }
        })

        
    </script>
</body>
</html>